]> dgit.raspbian.org Git - gnome-shell.git/commit
credentialManager: Shut up a JS warning
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 28 Oct 2020 19:26:18 +0000 (20:26 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 26 Nov 2020 13:17:26 +0000 (14:17 +0100)
commitef807619e96a562ca74de0950e67a7a3e49b650b
tree6db97e34d9b8be7c010a5fac9f89a277b897e9ea
parent244c266c9f59f1758024deb46a0418efe23243a8
credentialManager: Shut up a JS warning

Plain classes are private to their file, so accessing them from
another module results in the following warning:

    That property was defined with 'let' or 'const' inside the module.
    This was previously supported, but is not correct according to the
    ES6 standard.

Fix by assigning the class to a public variable instead.

(Eventually switching to ES6 modules with proper imports/exports will
fix this as well)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1512>
js/gdm/credentialManager.js